package sixth.group.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import sixth.group.domain.Orderinf;
import sixth.group.domain.OrderinfExample;

public interface OrderinfMapper {
    long countByExample(OrderinfExample example);

    int deleteByExample(OrderinfExample example);

    int deleteByPrimaryKey(Integer oid);

    int insert(Orderinf record);

    int insertSelective(Orderinf record);

    List<Orderinf> selectByExample(OrderinfExample example);

    Orderinf selectByPrimaryKey(Integer oid);

    int updateByExampleSelective(@Param("record") Orderinf record, @Param("example") OrderinfExample example);

    int updateByExample(@Param("record") Orderinf record, @Param("example") OrderinfExample example);

    int updateByPrimaryKeySelective(Orderinf record);

    int updateByPrimaryKey(Orderinf record);
    @Delete("delete from ord_dis_match where o_dorderid = #{oid}")
    int deleteOrderDishesByOrderId(int oid);



    Orderinf selectByPrimaryKeyWithObject(Integer oid);

    List<Orderinf> selectByExampleWithObject(OrderinfExample example);

    Integer selectByMaxid();
}